Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ROCm] Add initial ROCm PJRT support #7896

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

mmakevic-amd
Copy link

The plugin is using the same PJRT C API implementation as CUDA (just configured for ROCm) - https://github.com/openxla/xla/blob/main/xla/pjrt/c/pjrt_c_api_gpu_internal.cc

@mmakevic-amd
Copy link
Author

Hi @will-cromar , could you please review? Thanks!

Copy link
Collaborator

@will-cromar will-cromar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it be possible for you to move the plugin to your own repository? The packages in this repository are the ones that we (ie the PyTorch/XLA team) test, release, and maintain ourselves. Additional device support should be maintained out of tree.

You should be able to build the actual plugin directly from OpenXLA without having to create your own bazel workspace (something like bazel build --config=rocm //xla/pjrt/c:pjrt_c_api_gpu_plugin.so). Most of the mess of bazel build config in this repository supports the main torch_xla package build and won't be relevant for the plugin.

The Python parts of the package all look right to me.

We can accept the change in __init__.py since ROCm is a special case. We can also include a link to your plugin in our README.

@mmakevic-amd
Copy link
Author

Would it be possible for you to move the plugin to your own repository? The packages in this repository are the ones that we (ie the PyTorch/XLA team) test, release, and maintain ourselves. Additional device support should be maintained out of tree.

You should be able to build the actual plugin directly from OpenXLA without having to create your own bazel workspace (something like bazel build --config=rocm //xla/pjrt/c:pjrt_c_api_gpu_plugin.so). Most of the mess of bazel build config in this repository supports the main torch_xla package build and won't be relevant for the plugin.

The Python parts of the package all look right to me.

We can accept the change in __init__.py since ROCm is a special case. We can also include a link to your plugin in our README.

Thanks for the feedback! I will have to further discuss with my team about setting up our own repository, and will reach back once it is up. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants